package com.yzc.android.network.response;

import android.os.Parcel;

import com.google.gson.annotations.SerializedName;

/**
 * Created by yzc on 16/5/6.
 */
public class SectionInfoResponse implements android.os.Parcelable {

    @SerializedName("sectionId")
    public long sectionId;

    @SerializedName("sectionTitle")
    public String sectionTitle;

    @SerializedName("sectionImgUrl")
    public String sectionImgUrl;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(this.sectionId);
        dest.writeString(this.sectionTitle);
        dest.writeString(this.sectionImgUrl);
    }

    public SectionInfoResponse() {
    }

    protected SectionInfoResponse(Parcel in) {
        this.sectionId = in.readLong();
        this.sectionTitle = in.readString();
        this.sectionImgUrl = in.readString();
    }

    public static final Creator<SectionInfoResponse> CREATOR = new Creator<SectionInfoResponse>() {
        @Override
        public SectionInfoResponse createFromParcel(Parcel source) {
            return new SectionInfoResponse(source);
        }

        @Override
        public SectionInfoResponse[] newArray(int size) {
            return new SectionInfoResponse[size];
        }
    };
}
